<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html>
<html>
   <head>
    	<title>学科管理系统</title>   
		<s:include value="../common/source.jsp"></s:include>	
  </head>
  
  <body>
   <form id="form-msg" class="sui-form form-horizontal" novalidate="novalidate" onsubmit="return checknull()">
  
  
  <div class="control-group">
          <label class="control-label v-top">用户类别：</label>
          <div class="controls">
            <span class="sui-dropdown dropdown-bordered select">
              <span class="dropdown-inner">
                <a id="drop4" role="button" data-toggle="dropdown" href="#" class="dropdown-toggle">
                  <input value="" name="city" type="hidden"><i class="caret"></i><span>教师</span>
                </a>
                <ul id="menu4" role="menu" aria-labelledby="drop4" class="sui-dropdown-menu">
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value="0" name="subject">教师</a></li>
                  <li role="presentation"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value="1" name="subject">方向管理员</a></li>
                  <li role="presentation" class="active"><a role="menuitem" tabindex="-1" href="javascript:void(0);" value="2" name="subject">学科管理员</a></li>
                </ul>
              </span>
            </span>
          </div>
        </div>
  <div class="control-group">
    <label class="control-label">用户名：</label>
    <div class="controls">
      <input type="text" class="input-large" id="username" name="name" data-rules="required">
    </div>
  </div>
  
   <div class="control-group">
    <label class="control-label">密码：</label>
    <div class="controls">
      <input type="text" class="input-large" id="userpass" name="name" data-rules="required">
    </div>
  </div>
  
  <div class="control-group">
    <label for="sanwei" class="control-label"></label>
    <div class="controls">
      <button type="submit" class="sui-btn btn-primary">登陆</button>
    </div>
  </div>
</form>
<script>
 function checknull()
	{
		var number0=document.getElementById("username").value;
		var number1=document.getElementById("userpass").value;
		if(number0==""||number1=="")
		{
			alert("用户名和密码不能为空！");
			return false;
		}
	}
	
</script>
  </body>
</html>
